package com.zyx.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zyx.common.core.annotation.Excel;
import com.zyx.common.core.web.MyBaseEntity;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 用户对象 user
 *
 * @author zyx
 * @date 2025-09-24
 */
@Data
public class User extends MyBaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long id;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String username;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String email;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String nickname;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String avatar;

    /**
     * 性别 0:未知 1:男 2:女
     */
    @Excel(name = "性别 0:未知 1:男 2:女")
    private Integer gender;

    /**
     * 生日
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime birthday;

    /**
     * 状态 0:禁用 1:正常
     */
    @Excel(name = "状态 0:禁用 1:正常")
    private Integer status;

    /**
     * 最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime lastLoginTime;




}
